package br.diego.games.tetris.util;

import br.diego.games.tetris.layer.Tetris;
import javax.microedition.lcdui.game.Layer;
import javax.microedition.lcdui.game.LayerManager;

/**
 *
 * @author diego
 */
public class LayerUtil {

    public static void updateLayerManager(LayerManager lm,Tetris layer,int x,int y) throws java.io.IOException {
        Layer l = layer.getTiledLayer();
        l.setPosition(x, y);
        l.setVisible(true);
        lm.remove(l);
        lm.append(l);
    }

}
